
import request from '@/utils/request';

// 船舶AIS数据列表
export function getShipAis(data: any) {
  return request({
    url: '/system/shipData/list',
    method: 'GET',
    params: data
  });
}

// 船舶AIS数据详情
export function getShipAisDetail(id: any) {
  return request({
    url: '/system/shipData/' + id,
    method: 'GET'
  });
}

// 船舶AIS数据新增
export function addShipAis(data: any) {
  return request({
    url: '/system/shipData',
    method: 'POST',
    data: data
  });
}

// 船舶AIS数据编辑
export function editShipAis(data: any) {
  return request({
    url: '/system/shipData',
    method: 'PUT',
    data: data
  });
}

//判断船舶是否告警
export function getShipAlarm() {
  return request({
    url: '/system/shipData/alarm',
    method: 'GET',
  });
}
